import http from '@/common/service/service.js';

export default {
	
	pageIsland(params) {
		return http.get('/island/page', params);
	},
	listFixedIsland(params) {
		return http.get('/island/list/fixed', params);
	},
	listPushIsland(params) {
		return http.get('/island/list/push', params);
	},
	
	
	
	
	managePageIslandUser(params) {
		return http.get('/manage/island/user/page', params);
	},
	pageIslandUser(params) {
		return http.get('/island/user/page', params);
	},
	joinIsland(params) {
		return http.post('/island/user/join', params);
	},
	fixIslandOrCancel(params) {
		return http.get('/island/user/fixedOrCancel', params);
	},
	
	getIslandInfo(params){
		return http.get('/island/info', params);
	},
	
	
	getIslandManageInfo(params) {
		return http.get('/manage/island/info', params);
	},
	updateIslandUserRole(params) {
		return http.get('/manage/island/user/role/update', params);
	},
	bindIslandUser(params) {
		return http.post('/manage/island/user/bind', params);
	},
	
	
	
	
	
	pageIslandEvaluation(params) {
		return http.get('/island/user/evaluation/page', params);
	},
	
	
	
	
	
	
	
	
	
	
	
	getPostInfo(params) {
		return http.get('/post/info', params);
	},
	getPostEditInfo(params) {
		return http.get('/post/edit', params);
	},
	getPostDraftInfo(params) {
		return http.get('/post/draft', params);
	},
	pagePost(params) {
		return http.get('/post/page', params);
	},
	
	
	
	managePagePost(params) {
		return http.get('/manage/post/page', params);
	},
	manageUpdateIslandPost(params) {
		return http.post('/manage/post/update', params);
	},
	manageUpdateIslandPostVisibility(params) {
		return http.post('/manage/post/update/visibility', params);
	},
	
	manageUpdateIslandComment(params) {
		return http.post('/manage/post/comment/update', params);
	},
	
	
	
	listIslandNotice(params) {
		return http.get('/island/notice/list', params);
	},
	
	
	
	
	
	pageMemory(params) {
		return http.get('/post/page-memory', params);
	},
	likeOrCancelPost(params) {
		return http.get('/post/like-or-unlike', params);
	},
	createPost: (data) => {
		return http.post('/post/markOrDraft', data);
	},
	updatePost: (data) => {
		return http.post('/post/update', data);
	},
	getFileOssAuth(params){
		return http.get('/demand/uploadFile', params);
	},
	
	
	pagePostComment(params) {
		return http.get('/post/comment/page', params);
	},
	managePageIslandComment(params) {
		return http.get('/manage/post/comment/page', params);
	},
	addComment(data){
		return http.post('/post/comment/add', data);
	},
	deleteComment(params){
		return http.get('/post/comment/remove', params);
	},
	likeOrCancelComment(params) {
		return http.get('/post/comment/like-or-cancel', params);
	},
	
	getCommentInfo(params) {
		return http.get('/post/comment/info', params);
	},
	
	
	addReply(data){
		return http.post('/post/comment/reply/create', data);
	},
	listReply(params){
		return http.get('/post/comment/reply/list', params);
	},
	likeOrCancelReply(params){
		return http.get('/post/comment/reply/like-or-cancel', params);
	},
}
